1   package jrre.instructionset.push.localvariables;
2   
3   import jrre.Stack;
4   
5   public class ALoad_1 extends jrre.instructionset.Instruction {
6   
7       public ALoad_1(){
8   
9           name = "aload_1";
10          description = "The <n> must be an index into the local variable array of the current frame. "+
11                        "The local variable at <n> must contain a reference. The objectref in the local "+
12                        "variable at index is pushed onto the operand stack.";
13          length = 0;
14  
15      }
16     
17      /*** 
18       * Executes the <strong><code>aload</code></strong> instruction.
19       * 
20       * @param operandStack 
21       */
22      public void execute(){
23  
24          Stack.pushOperand(Stack.getLocalVariable(1));
25      }
26  
27      public String toString(){
28          StringBuffer toReturn = new StringBuffer();
29          toReturn.append("aload_1");
30  
31          return toReturn.toString();
32      }
33  
34  }
This page was automatically generated by Maven